package com.simon.viewlib;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;

public class MainActivity extends AppCompatActivity {

    ArcProgressbar progressbar;
    EditText progress;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

         progress = (EditText) this.findViewById(R.id.edit_progress);
        progressbar = (ArcProgressbar) this.findViewById(R.id.progressBar);

    }

    public void setProgress(View view){

        progressbar.setProgress(Integer.parseInt(progress.getText().toString()));
    }
}
